#!/bin/python
#patch.py
#this module has tools for dealing with patches

import re
import datetime

class Patch:
	"holds information about a patch"
	def __init__(self):
		self.format = ""
		self.targetFileName = ""
		self.targetDirectory = ""
		self.sourceFileName = ""
		self.sourceDirectory = "" 
		self.body = ""
		self.date = "" #should be a datetime object
		self.messageID = "" #id of the message in the mailing list this was extracted from
		self.emailbody = "" #actual text of email
		self.patchResults = [] #list of (success, failure, description of error, text from attempting to apply patch)
		self.possibleTargets = [] #list of possible targets in the cvs
		